var Time = {
	OnclickHandle: function (fullday,path,id) { 
		App.OnclickHandle(path,id);
		// 月份切换
		$(".every-date-tab ul li").click(function() {
			$(this).addClass('active').siblings().removeClass('active');
			var index = $(".every-date-tab ul li").index(this);
			$(".every-days-cell").eq(index).show().siblings().hide();
		});
		if(fullday){
			Time.ChangeDay(fullday);
		}else{
			$(".block ul li:last-child").click();
		}
	},
	//鼠标滑过项目切换
    MouseOver: function (e,dir) {
        try {
            if (dir == "up") {
                $(e).find(".accord-items-list").slideUp();
            } else {
                $(e).find(".accord-items-list").slideDown();
            }
            return false;
        } catch (cer) {; }
    },
	
	ChangeDay:function(fullday){
		$(".every-days-cell ul li a").removeClass("silgDy-dayListActive");
		$("#"+fullday).addClass("silgDy-dayListActive");
		$.ajax({
			type : 'POST',
			url : App.Path+'dataInfo',
			data:{day:fullday,pid:App.pid},
			dataType : 'html',
			beforeSend : function() {
				$("#Loading").show();
			},
			complete: function () {
				$("#Loading").hide();
		    },
			success : function(html) {
				$(".wrapper-content").html(html);
			}
		})
	},
	ShowProject: function (name) {
		$("#project-"+name).show().siblings().hide();
		$("#project-list-"+name).addClass("textgreen").parent().siblings().find("a").removeClass("textgreen");
	}
}